<?php

namespace App\Listeners;

use App\Events\TestEvent;
use Illuminate\Support\Facades\Log;

class TestCastNotification
{

    /**
     * Create the event listener.
     *
     * @return void
     */
    public function __construct()
    {
        //
    }

    /**
     * Handle the event.
     *
     * @param  TestEvent  $event
     * @return mixed
     */
    public function handle(TestEvent $event)
    {
        //
        Log::channel('event')->info(__CLASS__ . 'listener handle : ' . json_encode($event->params));
        return true;
    }

}
